 using System;

namespace DesignPattern.Decorator
{
    public interface ITextFileWritter
    {
        void Write(string message);
    }

    public class TextFileWritter : ITextFileWritter
    {
        public void Write(string message)
        {
           Console.WriteLine("I am writting into text file");    
        }
    }

    public interface IMSMQWritter
    {
        void Write(string message);
    }

    public class MSMQWritter : IMSMQWritter
    {
        public void Write(string message)
        {
            Console.WriteLine("I am writting into MSMQ");
        }
    }


    public interface IDatabaseWritter
    {
        void Write(string message);
    }

    public class DatabaseWritter : IDatabaseWritter
    {
        public void Write(string message)
        {
            Console.WriteLine("I am writting into Database");
        }
    }
}